let themeMedia= window.matchMedia("(prefers-color-scheme: light)");

// 获取 主题色
export const getThemeMediaInfo= ()=>{
    return themeMedia.matches;
}

// 设置 主题色
export const setThemeMediaInfo = (commit:any) => {
    themeMedia.addEventListener('change', (e => {
        commit('setThemeMedia', e.matches)
    }));
}

